<form class="layui-form layui-form-pane" lay-filter="FormSysResourceAdd" action="/sys/resource/add">
    <input type="hidden" id="upId" name="upId" th:value="${pid}">
    <input type="hidden" id="systemId" name="systemId" th:value="${sid}">
    <input type="hidden" id="modelId" name="modelId" th:value="${mid}">
    <div class="layui-row p-l-sm m-b-xl">
        <div class="layui-row">
            <div th:replace="common/plugin :: pa-form-input-detail('text','所属系统','layui-col-md4',${sysSystem.systemName})"></div>
            <div th:replace="common/plugin :: pa-form-input-detail('text','所属模块','layui-col-md4',${sysModel.modelName})"></div>
            <div th:replace="common/plugin :: pa-form-input-detail('text','父资源','layui-col-md4',${resName})"></div>
            <div th:replace="common/plugin :: pa-form-select('ResType','资源类型(*)','resType','layui-col-md6','required','','请选择资源类型')"></div>
            <div th:replace="common/plugin :: pa-form-input('text','资源名称(*)','resName','layui-col-md6',32,'required','')"></div>
            <div th:replace="common/plugin :: pa-form-input('text','资源路径(*)','resUrl','layui-col-md6',128,'required','')"></div>
            <div th:replace="common/plugin :: pa-form-input('text','权限编码(*)','resLimit','layui-col-md6',32,'required','')"></div>
            <div th:replace="common/plugin :: pa-form-input('text','资源排序(*)','resSort','layui-col-md6',6,'required|number','')"></div>
        </div>
        <div class="hr-line-dashed m-r m-t"></div>
        <div class="layui-row">
            <div th:replace="common/plugin :: pa-form-input('text','资源图标','resIcon','layui-col-md6',32,'','')"></div>
            <div th:replace="common/plugin :: pa-form-input('text','执行事件','resEvent','layui-col-md6',32,'','')"></div>
            <div th:replace="common/plugin :: pa-form-input('text','IP白名单','resIp','layui-col-md12',512,'','')"></div>
            <div th:replace="common/plugin :: pa-form-input('text','Session白名单','resSession','layui-col-md12',512,'','')"></div>
        </div>
    </div>
</form>
<script>
    layui.use(["iconSelectedPlus", 'form'], function () {
        let form = layui.form;
        let iconSelectedPlus = layui.iconSelectedPlus;
        form.render();
        iconSelectedPlus.render(".layui-input[name=resIcon]");
    });
</script>